#ifndef UPDATETHREAD_H
#define UPDATETHREAD_H

#include <QApplication>
#include <QThread>

class UpdateThread : public QThread
{
    Q_OBJECT
public:
    UpdateThread(QString versionType, QString thisVersion, QObject *parent = 0);
    bool isVersionNewer(QString oldVersion, QString newVersion);
    bool checkUpdate();
    void emitUpdate();

private:
    void run();
    QString versionType;
    QString thisVersion;

signals:
    void updateIsNowAvailable();
    void setNewVersion(QString newVersion);

public slots:
    void disableUpdateNotification();

};

#endif // UPDATETHREAD_H
